import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
	mode: 'history',
	routes: [
		{
			path: '/login',
			name: 'Login',
			component: (resolve) => require(['../pages/login.vue'], resolve),
		},
		{
			path: '/register',
			name: 'register',
			component: (resolve) => require(['../pages/register.vue'], resolve),
		},
		{
			path: '/',
			name: 'Home',
			component: (resolve) => require(['../pages/Home.vue'], resolve),
		},
		{
			path: '/player',
			name: 'Player',
			component: (resolve) => require(['../pages/Player.vue'], resolve),
		},
	],
});
